package com.example.szh.mvp.contract;

import com.example.szh.entity.BaseEntity;
import com.example.szh.entity.UserItemEntity;
import com.example.szh.entity.UserMenuEntity;
import com.example.szh.nextwork.model.IModel;
import com.example.szh.nextwork.view.IView;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;

public interface UserContract {
    interface IUserModel extends IModel{
        Observable<BaseEntity> requestUser(Map<String,Object>map);
    }
    interface IUserView extends IView{
        //用户信息回调方法
        void refresh(BaseEntity baseEntity);
        //用户菜单页面
        void refreshMenu(List<UserMenuEntity> menuEntities);
        //积分商城列表
        void refreshItem(List<UserItemEntity> itemEntities);
    }
}
